import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userPhoto: 'https://pics7.baidu.com/feed/7e3e6709c93d70cfcd2d12df1f988406b8a12bdc.jpeg?token=873b9d536144b26e357f5fdba6a5e859&s=3843A94C945B17DCDA64F91B030000C9' // 头像默认地址
  },
  mutations: {
    // 编码风格, mutations最好大写(区分)
    SET_USERPHOTO (state, value) {
      state.userPhoto = value
    }
  },
  actions: {
  },
  modules: {
  }
})
